/*
@Author   : Uyynot
@Email    : uyynot@qq.com
@Time     : 2023/8/16 18:13
@File     : user.go
@Project  : web_scaff
@Desc     :
*/
package router

import (
	"web_scaff/api/user"

	"github.com/gin-gonic/gin"
)

func UserRouterRegister(r *gin.Engine) {
	userGroup := r.Group("/user")
	{
		userGroup.POST("", user.Create)
		userGroup.GET("", user.List)
		userGroup.GET("/:id", user.Retrive)
		userGroup.PUT("/:id", user.Update)
		userGroup.DELETE("/:id", user.Delete)
	}
}
